
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<header>
    <title>学生端注册</title>
    <jsp:include page="header.jsp"></jsp:include>
</header>

<body>
    <div class="container">
        <hr>
        <div class="row">
            <div class="col-xs-2 col-md-3"></div>
            <div class="col-xs-8 col-md-6">
                <form action="${pageContext.request.contextPath}/studentRegistServlet" method="post" class="form-horizontal">
                    <br>
                    <div class="row">
                        <input type="text" class="form-control input-lg" name="sid" placeholder="学号" maxlength="10">
                    </div>
                    <br>
                    <div class="row">
                        <input type="text" class="form-control input-lg" name="sname" placeholder="姓名">
                    </div>
                    <br>
                    <div class="row">
                        <input type="password" class="form-control input-lg" name="pwd" placeholder="设置密码" maxlength="16">
                    </div>
                    <br>
                    <div class="row">
                        <input type="password" class="form-control input-lg" name="repeat_pwd" placeholder="确认密码" maxlength="16">
                    </div>
                    <br>
                    <div class="row">
                        <p class="bg-warning text-center " style="font-size: x-large">${requestScope.regist_msg}</p>
                    </div>
                    <div class="row">
                        <button type="submit" class="btn btn-primary btn-lg btn-block" >注册</button>
                    </div>
                </form>
                <div class="row">
                    <a href="index.jsp" type="button" class="btn btn-primary btn-lg btn-block">已有帐户登录</a>
                </div>
            </div>
            <div class="col-xs-2 col-md-3"></div>
        </div>
    </div>
    <jsp:include page="footer.jsp"></jsp:include>
</body>

</html>
